package company;

public class Employee {
    private String name;
    private int age;
    private String employeeId;
    private double salary;
    private int yearsOfService;

    public Employee(String name,int age,String employeeId,double salary,int yearsOfService)
    {
        this.name = name;
        this.age = age;
        this.employeeId = employeeId;
        this.salary = salary;
        this.yearsOfService = yearsOfService;
    }

    public void raiseSalary()
    {
        this.salary *= 1.1;
    }

    public String getName()
    {
        return name;
    }

    public void setName(String name)
    {
        this.name = name;
    }

    public int getAge()
    {
        return age;
    }

    public void setAge(int age)
    {
        this.age = age;
    }

    public String getEmployeeId()
    {
        return employeeId;
    }

    public void setEmployeeId(String employeeId)
    {
        this.employeeId = employeeId;
    }

    public double getSalary()
    {
        return salary;
    }

    public void setSalary(double salary)
    {
        this.salary = salary;
    }

    public int getYearsOfService()
    {
        return yearsOfService;
    }

    public void setYearsOfService(int yearsOfService)
    {
        this.yearsOfService = yearsOfService;
    }
}

